<template>
   <table class="my-table">
      <thead>
        <tr>
         <slot name="heard"></slot>
        </tr>
      </thead>
      <tbody>
        <tr v-for="item in date" :key="item.id" >
        <slot name="foot" :item="item"></slot>
        </tr>
      </tbody>
    </table>
</template>

<script>
export default {
  name: 'VueModeMyTable',
props:{
  date:{
    type:Array,
    required:true
  }
},
  data() {
    return {
      
    };
  },
};
</script>

<style lang="scss" scoped>

</style>